<template>
  <footer class="footer">
    <span class="todo-count" v-show="leftLength"
      ><strong>{{ leftLength }}</strong
      >剩余</span
    >
    <ul class="filters">
      <li>
        <a class="selected" href="#/">全部</a>
      </li>
      <li>
        <a href="#/active">进行中</a>
      </li>
      <li>
        <a href="#/completed">已完成</a>
      </li>
    </ul>
    <button class="clear-completed" @click="clearList" v-show="isDoneAll">
      清除已完成
    </button>
  </footer>
</template>

<script>
export default {
  name: 'Footer',
  props: {
    leftLength: {
      type: Number,
      required: true
    },
    isDoneAll: {
      type: Number
    }
  },
  components: {},
  data () {
    return {}
  },
  methods: {
    clearList () {
      this.$emit('clearList')
    }
  },
  watch: {},
  computed: {},
  filters: {}
}
</script>

<style scoped lang="less"></style>
